package com.jsy.search.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient("search")
@RequestMapping("/sku/es")
public interface SkuEsFeign {
    /**
     * 根据条件搜索
     * @param searchMap 搜索条件
     * @return 搜索结果
     */
    @GetMapping
    Map search(@RequestParam(required = false)Map<String,String> searchMap);
}
